package com.itheima.service;




import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;

/**
 * @author ：Shijiu
 * @create  2019/09/10 15:24
 * @description ：权限的service接口
 * @version: 1.0
 */
public interface PermissionService {
    //分页查询
    PageResult findByPage(QueryPageBean queryPageBean);
    //添加
    void add(Permission permission);
    //根据id查询权限
    Permission findPermissionById(Integer id);
    //更新
    void update(Permission permission);
    //删除
    void delete(Integer id);

    //查询所有的权限
    List<Permission> findAllPermission();
}
